package com.archgeek.scala.code

import java.util.Random

/**
 *
 * @author pizhihui
 * @date 2023-12-02 19:07
 */
object RandomDemo {

  val random: Random = new Random()

  def main(args: Array[String]): Unit = {


    val a = 10000
    val b = 20000
    val res = random.nextInt(10) + (b-a)

    println(res)
    println(random.nextLong())

  }

}
